package com.tony.domain.enumerate;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author tony
 * @date 2020/3/1 7:51 下午
 */
public enum EnableEnum implements IEnum<Integer>, ISystemEnum {
    ENABLE(1, "启用"),

    DISABLE(2, "禁用");

    private int value;
    @JsonValue
    private String desc;

    EnableEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    @Override
    public String getName() {
        return this.name();
    }

}
